home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / AppleScript / Development Tools / Interfaces / AppleScript 1.1 Interfaces / CIncludes / ASRegistry.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-27  |  11.0 KB  |  305 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        ASRegistry.h
  3.  
  4.     Copyright:    © 1984-1993 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12. #ifndef __ASREGISTRY__
  13. #define __ASREGISTRY__
  14.  
  15. #ifndef __AEREGISTRY__
  16. #include <AERegistry.h>
  17. /*    #include <Types.h>                                            */
  18. /*        #include <ConditionalMacros.h>                            */
  19. /*        #include <MixedMode.h>                                    */
  20. /*            #include <Traps.h>                                    */
  21. /*    #include <AppleEvents.h>                                    */
  22. /*        #include <Memory.h>                                        */
  23. /*        #include <OSUtils.h>                                    */
  24. /*        #include <Events.h>                                        */
  25. /*            #include <Quickdraw.h>                                */
  26. /*                #include <QuickdrawText.h>                        */
  27. /*                    #include <IntlResources.h>                    */
  28. /*        #include <EPPC.h>                                        */
  29. /*            #include <PPCToolBox.h>                                */
  30. /*                #include <AppleTalk.h>                            */
  31. /*            #include <Processes.h>                                */
  32. /*                #include <Files.h>                                */
  33. /*                    #include <SegLoad.h>                        */
  34. /*        #include <Notification.h>                                */
  35. #endif
  36.  
  37. #ifndef __AEOBJECTS__
  38. #include <AEObjects.h>
  39. #endif
  40.  
  41. enum  {
  42.     keyAETarget                    = 0x74617267,                    //  'targ'  //
  43.     keySubjectAttr                = 0x7375626a,                    //  'subj'  //
  44. // Magic 'returning' parameter:
  45.     keyASReturning                = 0x4b72746e,                    //  'Krtn'  //
  46. // AppleScript Specific Codes:
  47.     kASAppleScriptSuite            = 0x61736372,                    //  'ascr'  //
  48.     kASTypeNamesSuite            = 0x74706e6d,                    //  'tpnm'  //
  49. // dynamic terminologies
  50.     typeAETE                    = 0x61657465,                    //  'aete'  //
  51.     typeAEUT                    = 0x61657574,                    //  'aeut'  //
  52.     kGetAETE                    = 0x67647465,                    //  'gdte'  //
  53.     kGetAEUT                    = 0x67647574,                    //  'gdut'  //
  54.     kUpdateAEUT                    = 0x75647574,                    //  'udut'  //
  55.     kUpdateAETE                    = 0x75647465,                    //  'udte'  //
  56.     kCleanUpAEUT                = 0x63647574,                    //  'cdut'  //
  57.     kASComment                    = 0x636d6e74,                    //  'cmnt'  //
  58.     kASLaunchEvent                = 0x6e6f6f70,                    //  'noop'  //
  59.     keyScszResource                = 0x7363737A,                    //  'scsz'  //
  60.     typeScszResource            = 0x7363737A,                    //  'scsz'  //
  61. // subroutine calls
  62.     kASSubroutineEvent            = 0x70736272,                    //  'psbr'  //
  63.     keyASSubroutineName            = 0x736e616d                    //  'snam'  //
  64. };
  65.  
  66.  
  67. // Operator Events:
  68.  
  69. enum  {
  70. //        Binary:
  71.     kASAdd                        = 0x2b202020,                    //  '+   '  //
  72.     kASSubtract                    = 0x2d202020,                    //  '-   '  //
  73.     kASMultiply                    = 0x2a202020,                    //  '*   '  //
  74.     kASDivide                    = 0x2f202020,                    //  '/   '  //
  75.     kASQuotient                    = 0x64697620,                    //  'div '  //
  76.     kASRemainder                = 0x6d6f6420,                    //  'mod '  //
  77.     kASPower                    = 0x5e202020,                    //  '^   '  //
  78.     kASEqual                    = kAEEquals,
  79.     kASNotEqual                    = 0xad202020,                    //  '≠   '  //
  80.     kASGreaterThan                = kAEGreaterThan,
  81.     kASGreaterThanOrEqual        = kAEGreaterThanEquals,
  82.     kASLessThan                    = kAELessThan,
  83.     kASLessThanOrEqual            = kAELessThanEquals,
  84.     kASComesBefore                = 0x63626672,                    //  'cbfr'  //
  85.     kASComesAfter                = 0x63616672,                    //  'cafr'  //
  86.     kASConcatenate                = 0x63636174,                    //  'ccat'  //
  87.     kASStartsWith                = kAEBeginsWith,
  88.     kASEndsWith                    = kAEEndsWith,
  89.     kASContains                    = kAEContains
  90. };
  91.  
  92. enum  {
  93.     kASAnd                        = kAEAND,
  94.     kASOr                        = kAEOR,
  95. //    Unary:
  96.     kASNot                        = kAENOT,
  97.     kASNegate                    = 0x6e656720,                    //  'neg '  //
  98.     keyASArg                    = 0x61726720                    //  'arg '  //
  99. };
  100.  
  101. enum  {
  102. // event code for the 'error' statement
  103.     kASErrorEventCode            = 0x65727220,                    //  'err '  //
  104.     kOSAErrorArgs                = 0x65727261,                    //  'erra'  //
  105. // Properties:
  106.     pLength                        = 0x6c656e67,                    //  'leng'  //
  107.     pReverse                    = 0x72767365,                    //  'rvse'  //
  108.     pRest                        = 0x72657374,                    //  'rest'  //
  109.     pInherits                    = 0x6340235e,                    //  'c@#^'  //
  110. // User-Defined Record Fields:
  111.     keyASUserRecordFields        = 0x75737266,                    //  'usrf'  //
  112.     typeUserRecordFields        = 'list'
  113. };
  114.  
  115.  
  116. // Prepositions:
  117.  
  118. enum  {
  119.     keyASPrepositionAt            = 0x61742020,                    //  'at  '  //
  120.     keyASPrepositionIn            = 0x696e2020,                    //  'in  '  //
  121.     keyASPrepositionFrom        = 0x66726f6d,                    //  'from'  //
  122.     keyASPrepositionFor            = 0x666f7220,                    //  'for '  //
  123.     keyASPrepositionTo            = 0x746f2020,                    //  'to  '  //
  124.     keyASPrepositionThru        = 0x74687275,                    //  'thru'  //
  125.     keyASPrepositionThrough        = 0x74686768,                    //  'thgh'  //
  126.     keyASPrepositionBy            = 0x62792020,                    //  'by  '  //
  127.     keyASPrepositionOn            = 0x6f6e2020,                    //  'on  '  //
  128.     keyASPrepositionInto        = 0x696e746f,                    //  'into'  //
  129.     keyASPrepositionOnto        = 0x6f6e746f,                    //  'onto'  //
  130.     keyASPrepositionBetween        = 0x6274776e,                    //  'btwn'  //
  131.     keyASPrepositionAgainst        = 0x61677374,                    //  'agst'  //
  132.     keyASPrepositionOutOf        = 0x6f75746f,                    //  'outo'  //
  133.     keyASPrepositionInsteadOf    = 0x6973746f,                    //  'isto'  //
  134.     keyASPrepositionAsideFrom    = 0x61736466,                    //  'asdf'  //
  135.     keyASPrepositionAround        = 0x61726e64,                    //  'arnd'  //
  136.     keyASPrepositionBeside        = 0x62736964,                    //  'bsid'  //
  137.     keyASPrepositionBeneath        = 0x626e7468,                    //  'bnth'  //
  138.     keyASPrepositionUnder        = 0x756e6472                    //  'undr'  //
  139. };
  140.  
  141. enum  {
  142.     keyASPrepositionOver        = 0x6f766572,                    //  'over'  //
  143.     keyASPrepositionAbove        = 0x61627665,                    //  'abve'  //
  144.     keyASPrepositionBelow        = 0x62656c77,                    //  'belw'  //
  145.     keyASPrepositionApartFrom    = 0x61707274,                    //  'aprt'  //
  146.     keyASPrepositionGiven        = 0x6769766e,                    //  'givn'  //
  147.     keyASPrepositionWith        = 0x77697468,                    //  'with'  //
  148.     keyASPrepositionWithout        = 0x776f7574,                    //  'wout'  //
  149.     keyASPrepositionAbout        = 0x61626f75,                    //  'abou'  //
  150.     keyASPrepositionSince        = 0x736e6365,                    //  'snce'  //
  151.     keyASPrepositionUntil        = 0x74696c6c                    //  'till'  //
  152. };
  153.  
  154. enum  {
  155. // Terminology & Dialect things:
  156.     kDialectBundleResType        = 0x4462646c,                    //  'Dbdl'  //
  157. // AppleScript Classes and Enums:
  158.     cConstant                    = 'enum',
  159.     cClassIdentifier            = pClass,
  160.     cObjectBeingExamined        = typeObjectBeingExamined,
  161.     cList                        = 'list',
  162.     cSmallReal                    = 'sing',
  163.     cReal                        = 'doub',
  164.     cRecord                        = 'reco',
  165.     cReference                    = cObjectSpecifier,
  166.     cUndefined                    = 0x756e6466,                    //  'undf'  //
  167.     cSymbol                        = 0x73796d62,                    //  'symb'  //
  168.     cLinkedList                    = 0x6c6c7374,                    //  'llst'  //
  169.     cVector                        = 0x76656374,                    //  'vect'  //
  170.     cEventIdentifier            = 0x65766e74,                    //  'evnt'  //
  171.     cKeyIdentifier                = 0x6b796964,                    //  'kyid'  //
  172.     cUserIdentifier                = 0x75696420,                    //  'uid '  //
  173.     cPreposition                = 0x70726570,                    //  'prep'  //
  174.     cKeyForm                    = enumKeyForm,
  175.     cScript                        = 0x73637074,                    //  'scpt'  //
  176.     cHandler                    = 0x68616e64,                    //  'hand'  //
  177.     cProcedure                    = 0x70726f63                    //  'proc'  //
  178. };
  179.  
  180. enum  {
  181.     cClosure                    = 0x636c7372,                    //  'clsr'  //
  182.     cRawData                    = 0x72646174,                    //  'rdat'  //
  183.     cString                        = 'TEXT',
  184.     cNumber                        = 0x6e6d6272,                    //  'nmbr'  //
  185.     cListOrRecord                = 0x6c722020,                    //  'lr  '  //
  186.     cListOrString                = 0x6c732020,                    //  'ls  '  //
  187.     cListRecordOrString            = 0x6c727320,                    //  'lrs '  //
  188.     cNumberOrDateTime            = 0x6e642020,                    //  'nd  '  //
  189.     cNumberDateTimeOrString        = 0x6e647320,                    //  'nds '  //
  190.     cSeconds                    = 0x73636e64,                    //  'scnd'  //
  191.     enumBooleanValues            = 0x626f6f76,                    //  'boov'  //
  192.     kAETrue                        = 'true',
  193.     kAEFalse                    = 'fals',
  194.     enumMiscValues                = 0x6d697363,                    //  'misc'  //
  195.     kASCurrentApplication        = 0x63757261,                    //  'cura'  //
  196. // User-defined property ospecs:
  197.     formUserPropertyID            = 0x75737270                    //  'usrp'  //
  198. };
  199.  
  200. enum  {
  201. // Global properties:
  202.     pASIt                        = 0x69742020,                    //  'it  '  //
  203.     pASMe                        = 0x6d652020,                    //  'me  '  //
  204.     pASResult                    = 0x72736c74,                    //  'rslt'  //
  205.     pASSpace                    = 0x73706163,                    //  'spac'  //
  206.     pASReturn                    = 0x72657420,                    //  'ret '  //
  207.     pASTab                        = 0x74616220,                    //  'tab '  //
  208.     pASPi                        = 0x70692020,                    //  'pi  '  //
  209.     pASParent                    = 0x70617265,                    //  'pare'  //
  210.     kASInitializeEventCode        = 0x696e6974,                    //  'init'  //
  211.     pASPrintLength                = 0x70726c6e,                    //  'prln'  //
  212.     pASPrintDepth                = 0x70726470,                    //  'prdp'  //
  213.     pASTopLevelScript            = 0x61736372                    //  'ascr'  //
  214. };
  215.  
  216. enum  {
  217. // Considerations
  218.     kAECase                        = 0x63617365,                    //  'case'  //
  219.     kAEDiacritic                = 0x64696163,                    //  'diac'  //
  220.     kAEWhiteSpace                = 0x77686974,                    //  'whit'  //
  221.     kAEHyphens                    = 0x68797068,                    //  'hyph'  //
  222.     kAEExpansion                = 0x65787061,                    //  'expa'  //
  223.     kAEPunctuation                = 0x70756e63,                    //  'punc'  //
  224.     kAEZenkakuHankaku            = 0x7a6b686b,                    //  'zkhk'  //
  225.     kAESmallKana                = 0x736b6e61,                    //  'skna'  //
  226.     kAEKataHiragana                = 0x68696b61,                    //  'hika'  //
  227. // AppleScript considerations:
  228.     kASConsiderReplies            = 0x726d7465,                    //  'rmte'  //
  229.     enumConsiderations            = 0x636f6e73                    //  'cons'  //
  230. };
  231.  
  232. enum  {
  233.     cCoercion                    = 0x636f6563,                    //  'coec'  //
  234.     cCoerceUpperCase            = 0x74787570,                    //  'txup'  //
  235.     cCoerceLowerCase            = 0x74786c6f,                    //  'txlo'  //
  236.     cCoerceRemoveDiacriticals    = 0x74786463,                    //  'txdc'  //
  237.     cCoerceRemovePunctuation    = 0x74787063,                    //  'txpc'  //
  238.     cCoerceRemoveHyphens        = 0x74786879,                    //  'txhy'  //
  239.     cCoerceOneByteToTwoByte        = 0x74786578,                    //  'txex'  //
  240.     cCoerceRemoveWhiteSpace        = 0x74787773,                    //  'txws'  //
  241.     cCoerceSmallKana            = 0x7478736b,                    //  'txsk'  //
  242.     cCoerceZenkakuhankaku        = 0x74787a65,                    //  'txze'  //
  243.     cCoerceKataHiragana            = 0x74786b68,                    //  'txkh'  //
  244. // Lorax things:
  245.     cZone                        = 0x7a6f6e65,                    //  'zone'  //
  246.     cMachine                    = 0x6d616368,                    //  'mach'  //
  247.     cAddress                    = 0x61646472,                    //  'addr'  //
  248.     cRunningAddress                = 0x72616464,                    //  'radd'  //
  249.     cStorage                    = 0x73746f72                    //  'stor'  //
  250. };
  251.  
  252. enum  {
  253. // DateTime things:
  254.     pASWeekday                    = 0x776b6479,                    //  'wkdy'  //
  255.     pASMonth                    = 0x6d6e7468,                    //  'mnth'  //
  256.     pASDay                        = 0x64617920,                    //  'day '  //
  257.     pASYear                        = 0x79656172,                    //  'year'  //
  258.     pASTime                        = 0x74696d65,                    //  'time'  //
  259.     pASDateString                = 0x64737472,                    //  'dstr'  //
  260.     pASTimeString                = 0x74737472,                    //  'tstr'  //
  261. // Months
  262.     cMonth                        = pASMonth,
  263.     cJanuary                    = 0x6a616e20,                    //  'jan '  //
  264.     cFebruary                    = 0x66656220,                    //  'feb '  //
  265.     cMarch                        = 0x6d617220,                    //  'mar '  //
  266.     cApril                        = 0x61707220,                    //  'apr '  //
  267.     cMay                        = 0x6d617920,                    //  'may '  //
  268.     cJune                        = 0x6a756e20,                    //  'jun '  //
  269.     cJuly                        = 0x6a756c20,                    //  'jul '  //
  270.     cAugust                        = 0x61756720,                    //  'aug '  //
  271.     cSeptember                    = 0x73657020,                    //  'sep '  //
  272.     cOctober                    = 0x6f637420,                    //  'oct '  //
  273.     cNovember                    = 0x6e6f7620,                    //  'nov '  //
  274.     cDecember                    = 0x64656320                    //  'dec '  //
  275. };
  276.  
  277. enum  {
  278. // Weekdays
  279.     cWeekday                    = pASWeekday,
  280.     cSunday                        = 0x73756e20,                    //  'sun '  //
  281.     cMonday                        = 0x6d6f6e20,                    //  'mon '  //
  282.     cTuesday                    = 0x74756520,                    //  'tue '  //
  283.     cWednesday                    = 0x77656420,                    //  'wed '  //
  284.     cThursday                    = 0x74687520,                    //  'thu '  //
  285.     cFriday                        = 0x66726920,                    //  'fri '  //
  286.     cSaturday                    = 0x73617420,                    //  'sat '  //
  287. // AS 1.1 Globals:
  288.     pASQuote                    = 0x71756f74,                    //  'quot'  //
  289.     pASSeconds                    = 0x73656373,                    //  'secs'  //
  290.     pASMinutes                    = 0x6d696e20,                    //  'min '  //
  291.     pASHours                    = 0x686f7572,                    //  'hour'  //
  292.     pASDays                        = 0x64617973,                    //  'days'  //
  293.     pASWeeks                    = 0x7765656b,                    //  'week'  //
  294. // Writing Code things:
  295.     cWritingCodeInfo            = 0x6369746c,                    //  'citl'  //
  296.     pScriptCode                    = 0x70736364,                    //  'pscd'  //
  297.     pLangCode                    = 0x706c6364,                    //  'plcd'  //
  298. // Magic Tell and End Tell events for logging:
  299.     kASMagicTellEvent            = 0x74656c6c,                    //  'tell'  //
  300.     kASMagicEndTellEvent        = 0x74656e64                    //  'tend'  //
  301. };
  302.  
  303. #endif
  304.  
  305.